Optimal. Leaf size=345 \[ \frac {\sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{b d \sqrt {a+b \sec (c+d x)}}-\frac {3 a \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{b^2 d \sqrt {a+b \sec (c+d x)}}-\frac {\left (3 a^2-b^2\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{b^2 \left (a^2-b^2\right ) d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}-\frac {2 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.69, antiderivative size = 345, normalized size of antiderivative = 1.00, number
of steps used = 13, number of rules used = 13, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.520, Rules
used = {3930, 4187, 4193, 3944, 2886, 2884, 4120, 3941, 2734, 2732, 3943, 2742, 2740}
\begin {gather*} -\frac {2 a^2 \sin (c+d x) \sec ^{\frac {3}{2}}(c+d x)}{b d \left (a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sin (c+d x) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}}{b^2 d \left (a^2-b^2\right )}-\frac {\left (3 a^2-b^2\right ) \sqrt {a+b \sec (c+d x)} E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{b^2 d \left (a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}}}-\frac {3 a \sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{b^2 d \sqrt {a+b \sec (c+d x)}}+\frac {\sqrt {\sec (c+d x)} \sqrt {\frac {a \cos (c+d x)+b}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{b d \sqrt {a+b \sec (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2884
Rule 2886
Rule 3930
Rule 3941
Rule 3943
Rule 3944
Rule 4120
Rule 4187
Rule 4193
Rubi steps
\begin {align*} \int \frac {\sec ^{\frac {7}{2}}(c+d x)}{(a+b \sec (c+d x))^{3/2}} \, dx &=-\frac {2 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}-\frac {2 \int \frac {\sqrt {\sec (c+d x)} \left (\frac {a^2}{2}-\frac {1}{2} a b \sec (c+d x)-\frac {1}{2} \left (3 a^2-b^2\right ) \sec ^2(c+d x)\right )}{\sqrt {a+b \sec (c+d x)}} \, dx}{b \left (a^2-b^2\right )}\\ &=-\frac {2 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}-\frac {2 \int \frac {\frac {1}{4} a \left (3 a^2-b^2\right )+\frac {1}{2} a^2 b \sec (c+d x)+\frac {3}{4} a \left (a^2-b^2\right ) \sec ^2(c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{b^2 \left (a^2-b^2\right )}\\ &=-\frac {2 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}-\frac {(3 a) \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{\sqrt {a+b \sec (c+d x)}} \, dx}{2 b^2}-\frac {2 \int \frac {\frac {1}{4} a \left (3 a^2-b^2\right )+\frac {1}{2} a^2 b \sec (c+d x)}{\sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)}} \, dx}{b^2 \left (a^2-b^2\right )}\\ &=-\frac {2 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}+\frac {\int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+b \sec (c+d x)}} \, dx}{2 b}-\frac {\left (3 a^2-b^2\right ) \int \frac {\sqrt {a+b \sec (c+d x)}}{\sqrt {\sec (c+d x)}} \, dx}{2 b^2 \left (a^2-b^2\right )}-\frac {\left (3 a \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {b+a \cos (c+d x)}} \, dx}{2 b^2 \sqrt {a+b \sec (c+d x)}}\\ &=-\frac {2 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}+\frac {\left (\sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {b+a \cos (c+d x)}} \, dx}{2 b \sqrt {a+b \sec (c+d x)}}-\frac {\left (3 a \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec (c+d x)}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{2 b^2 \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (3 a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {b+a \cos (c+d x)} \, dx}{2 b^2 \left (a^2-b^2\right ) \sqrt {b+a \cos (c+d x)} \sqrt {\sec (c+d x)}}\\ &=-\frac {3 a \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{b^2 d \sqrt {a+b \sec (c+d x)}}-\frac {2 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}+\frac {\left (\sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}}} \, dx}{2 b \sqrt {a+b \sec (c+d x)}}-\frac {\left (\left (3 a^2-b^2\right ) \sqrt {a+b \sec (c+d x)}\right ) \int \sqrt {\frac {b}{a+b}+\frac {a \cos (c+d x)}{a+b}} \, dx}{2 b^2 \left (a^2-b^2\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}\\ &=\frac {\sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{b d \sqrt {a+b \sec (c+d x)}}-\frac {3 a \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {\sec (c+d x)}}{b^2 d \sqrt {a+b \sec (c+d x)}}-\frac {\left (3 a^2-b^2\right ) E\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right ) \sqrt {a+b \sec (c+d x)}}{b^2 \left (a^2-b^2\right ) d \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \sqrt {\sec (c+d x)}}-\frac {2 a^2 \sec ^{\frac {3}{2}}(c+d x) \sin (c+d x)}{b \left (a^2-b^2\right ) d \sqrt {a+b \sec (c+d x)}}+\frac {\left (3 a^2-b^2\right ) \sqrt {\sec (c+d x)} \sqrt {a+b \sec (c+d x)} \sin (c+d x)}{b^2 \left (a^2-b^2\right ) d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 12.83, size = 478, normalized size = 1.39 \begin {gather*} \frac {\sec ^{\frac {3}{2}}(c+d x) \left (-\frac {a (b+a \cos (c+d x))^{3/2} \left (\frac {8 a b \sqrt {\frac {b+a \cos (c+d x)}{a+b}} F\left (\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{\sqrt {b+a \cos (c+d x)}}+\frac {2 \left (9 a^2-7 b^2\right ) \sqrt {\frac {b+a \cos (c+d x)}{a+b}} \Pi \left (2;\frac {1}{2} (c+d x)|\frac {2 a}{a+b}\right )}{\sqrt {b+a \cos (c+d x)}}+\frac {2 i \left (3 a^2-b^2\right ) \sqrt {-\frac {a (-1+\cos (c+d x))}{a+b}} \sqrt {\frac {a (1+\cos (c+d x))}{a-b}} \csc (c+d x) \left (-2 b (a+b) E\left (i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )+a \left (2 b F\left (i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )+a \Pi \left (1-\frac {a}{b};i \sinh ^{-1}\left (\sqrt {\frac {1}{a-b}} \sqrt {b+a \cos (c+d x)}\right )|\frac {-a+b}{a+b}\right )\right )\right )}{a^2 \sqrt {\frac {1}{a-b}} b}\right )}{(a-b) b^2 (a+b)}+\frac {4 (b+a \cos (c+d x)) \left (-a^2 b+b^3+\left (-3 a^3+a b^2\right ) \cos (c+d x)\right ) \tan (c+d x)}{-a^2 b^2+b^4}\right )}{4 d (a+b \sec (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.45, size = 1501, normalized size = 4.35
method | result | size |
default | \(\text {Expression too large to display}\) | \(1501\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{7/2}}{{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________